CFLAG = -std=c++11 -I ../../../build/release-install-cpp11/include/
LFLAG = -L ../../../build/release-install-cpp11/lib -lmuduo_net -lmuduo_base -lpthread -ljsoncpp

all:rpc_server rpc_client registry_server

rpc_server:rpc_server.cc
	g++ -o $@ $^ $(CFLAG) $(LFLAG)

rpc_client:rpc_client.cc
	g++ -o $@ $^ $(CFLAG) $(LFLAG)

registry_server:registry_server.cc
	g++ -o $@ $^ $(CFLAG) $(LFLAG)

.PHONY: clean
clean:
	rm -f rpc_server rpc_client registry_server *.log